import {
  CreateTopoViewParam,
  DeleteTopoViewParam,
  EditTopoViewParam,
  TopoView,
} from './model/topoViewModel'
import { defHttp } from '/@/utils/http/axios'

export const getTopoViewList = (params?: any) =>
  defHttp.get<TopoView[]>({ url: '/topo_view/list', params })

export const createTopoView = (params: any) =>
  defHttp.post<CreateTopoViewParam>({ url: '/topo_view/create', params })

export const editTopoView = (params: any) =>
  defHttp.post<EditTopoViewParam>({ url: '/topo_view/edit', params })

export const deleteTopoView = (params: any) =>
  defHttp.post<DeleteTopoViewParam>({ url: '/topo_view/delete', params })
